using System.Data.Entity.ModelConfiguration;
using ExampleWebApplication.Entities;

namespace ExampleWebApplication.Infraestruture.EntityFramework.EntityTypeConfigurations
{
    public class CustomerCustomerDemoConfiguration : EntityTypeConfiguration<CustomerCustomerDemo>
    {
        public CustomerCustomerDemoConfiguration()
        {
            HasKey(entity => new
                                 {
                                     entity.CustomerID,
                                     entity.CustomerTypeID
                                 });
        }
    }
}